﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using TracNghiemTinHocDaiCuong.DAO;
using TracNghiemTinHocDaiCuong.ThucThe;

namespace TracNghiemTinHocDaiCuong.BIZ
{
    public class DeThiBIZ
    {
        public static bool TaoDeThi(DeThi deThi)
        {
            return DeThiDAO.TaoDeThi(deThi);
        }

        public static bool TaoDeThiMoi(DeThi deThi)
        {
            return DeThiDAO.TaoDeThiMoi(deThi);
        }

        public static bool TaoDeThiTongHopMoi(DeThi deThi)
        {
            return DeThiDAO.TaoDeThiTongHopMoi(deThi);
        }


        public static IList<DeThi> TimKiem(string tenDT, string range)
        {
            return DeThiDAO.TimKiem(tenDT, range);
        }

        public static DeThi TimTheoId(int idDeThi)
        {
            return DeThiDAO.TimTheoId(idDeThi);
        }

        public static IList<DeThi> LayDanhSach(string chuDe)
        {
            return DeThiDAO.LayDanhSach(chuDe);
        }

        public static IList<DeThi> LayDanhSach()
        {
            return DeThiDAO.LayDanhSach();
        }

        public static DataTable LayDanhSachTheoChuDe()
        {
            return DeThiDAO.LayDanhSachTheoChuDe();
        }

        public static bool Them(DeThi DeThi)
        {
            return DeThiDAO.Them(DeThi);
        }

        public static bool Sua(DeThi DeThi)
        {
            return DeThiDAO.Sua(DeThi);
        }

        public static bool Xoa(int idDeThi)
        {
            return DeThiDAO.Xoa(idDeThi);
        }
    }
}